package com.yangfei.domain;

import org.apache.solr.client.solrj.beans.Field;

import java.util.ArrayList;

public class Item {
    @Field
    private String id;

    @Override
    public String toString() {
        return "Item{" +
                "id='" + id + '\'' +
                ", title=" + title +
                ", price=" + price +
                '}';
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public ArrayList getTitle() {
        return title;
    }

    public void setTitle(ArrayList title) {
        this.title = title;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    public Item(String id, ArrayList title, float price) {

        this.id = id;
        this.title = title;
        this.price = price;
    }

    @Field
    private ArrayList title;
    @Field
    private float price;

    public Item() {
    }


}
